{% extends "base.html" %}

{% block content %}
        <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="{{full_path}}" method="post">
            <div class="searchBar">

                <table class="searchContent">
                    <tbody><tr>
                        <td>
                            起始日期：<input type="text" class="date textInput readonly"  name="dt1" value="{{dt1|date:'Y-m-d'}}"  readonly="true">
                        </td>
                        <td>
                            终止日期：<input type="text" class="date textInput readonly"  name="dt2" value="{{dt2|date:'Y-m-d'}}"  readonly="true">
                        </td>
                    </tr>
                    </tbody></table>
                <div class="subBar">
                    <ul>
                        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                    </ul>
                </div>
            </div>
        </form>
    </div>
        <div class="pageContent">
			    <div class="panelBar">
			        <ul class="toolBar">
			            <li><a class="add" href="/admin/workday/create" target="navTab" rel="holiday_form"><span>添加工作日</span></a></li>
			            <li></li>
			        </ul>
			    </div>
          <table class="list" width="100%">
            <thead>
            <tr>
                <th width="77">ID</th>
                <th width="177">时间</th>
                <th width="177">描述</th>
                <th>操作</th>
            </tr>
            </thead>
            {%for workday in list.object_list%}
            <tr>
              <td>{{workday.id}}</td>
              <td>{{workday.at_date|date:"Y-m-d"}}</td>
              <td>{{workday.memo}}</td>
              <td><a href="/admin/workday/delete/{{workday.id}}" target="ajaxTodo" title="确定要删除吗?" rel="list_workday_page">删除</a></td>
            </tr>
            {%endfor%}
          </table>
        </div>
        <div class="panelBar">
          <div class="pagination" targettype="navTab" totalcount="{{list.count}}" numperpage="10" pagenumshown="10" currentpage="{{list.number}}"></div>
        </div>
{% endblock %}